#pragma once
#include "afxwin.h"


// CStoperDlg dialog

class CStoperDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CStoperDlg)

public:
	CStoperDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CStoperDlg();

// Dialog Data
	enum { IDD = IDD_STOPER };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
private:
	unsigned long m_ulElapsedTime;
	unsigned long m_ulStartTime;
public:
	CString m_strCounter;
	afx_msg void OnBnClickedStart();
	afx_msg void OnBnClickedStop();
	afx_msg void OnBnClickedReset();
	afx_msg void OnBnClickedCopy();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
private:
	void UpdateCounter(void);
public:
	virtual BOOL OnInitDialog();
private:
	CFont m_fCounterFont;
	CStatic m_CounterCtrl;
public:
	virtual void OnFinalRelease();
};
